package cn.edu.bupt.scidata.mapper;

import cn.edu.bupt.scidata.model.paper.DateValue;
import cn.edu.bupt.scidata.model.paper.Keyword;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface DateValueMapper {
//    交叉学科趋势时间序列
    List<DateValue> Timesort(List<Integer> paperIdList);
    List<DateValue> enTimesort(List<Integer> paperIdList);
    //  交叉研究主题趋势时间序列
    List<DateValue> KeyTimesort(int a_id, int b_id,int keyid, List<Integer> paperIdList);
    List<DateValue> enKeyTimesort(int a_id, int b_id,int keyid, List<Integer> paperIdList);
//    top5关键词
    List<Keyword> keylist(int a_id, int b_id, List<Integer> paperIdList);
    List<Keyword> enkeylist(int a_id, int b_id, List<Integer> paperIdList);
    // top3关键词
    List<Keyword> keylistlimt3(int a_id, int b_id);
    List<Keyword> enkeylistlimt3(int a_id, int b_id);

    List<Keyword> keylistById(@Param("paperIdList") List<Integer> paperIdList);
}
